package com.medicinemanager.business;

import android.content.Context;

import com.medicinemanager.app.MedicineApp;
import com.medicinemanager.sql.MedicineManager;
import com.medicinemanager.sql.StaffManager;

public class ShowMedicineSource {
	private MedicineApp mMedicineApp = null;
	private MedicineManager mMedicineManager = null;
	
	public ShowMedicineSource(Context context) {
		mMedicineApp = (MedicineApp) context.getApplicationContext();
		mMedicineManager = new MedicineManager(context);
	}
	
	public void parseData(){
		String sqlinstance = "select * from medicine_information";
		mMedicineApp.setMedicines(mMedicineManager.rawQuery(sqlinstance));
	}
}
